<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>工程首页</h1>
<a href="/reg.html">注册</a>
<!--绝对路径1   /代表的是工程根路径http://localhost:8080/ -->
<a href="/login.html">登录1</a>
<!--绝对路径2-->
<a href="http://localhost:8080/login.html">登录2</a>
<!--相对路径:相对于当前页面所处位置
http://localhost:8080/index.html
http://localhost:8080/login.html
-->
<a href="login.html">登录3</a>


<a href="/hello">动态请求</a>
<h2>通过form表单发出请求</h2>
<form action="/hello">
    <input type="text" name="info">
    <input type="submit" >
</form>
<h2>第二种传参方式</h2>
<form action="/nameAge">
    <input type="text" name="name">
    <input type="text" name="age">
    <input type="submit">
</form>
<h2>第三种传参方式</h2>
<form action="/reg">
    <input type="text" name="username" placeholder="用户名">
    <input type="text" name="password" placeholder="密码">
    <input type="text" name="nick" placeholder="昵称">
    <input type="submit" value="注册">
</form>





</body>
</html>